#!/bin/bash

# 定义颜色代码
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[0;33m'
BLUE='\033[0;34m'
MAGENTA='\033[0;35m'
CYAN='\033[0;36m'
WHITE='\033[0;37m'
NC='\033[0m' # No Color

# 使用颜色
docker stop archai-nexus-ink-muse-admin
echo -e "${GREEN}CONTAINER archai-nexus-ink-muse-admin stop successful .${NC}"
echo -e "${RED} start remove CONTAINER archai-nexus-ink-muse-admin .${NC}"
docker rm archai-nexus-ink-muse-admin
echo -e "${GREEN}CONTAINER archai-nexus-ink-muse-admin remove successful .${NC}"
echo -e "${GREEN} start build CONTAINER archai-nexus-ink-muse-admin .${NC}"
docker build -t archai-nexus-ink-muse-admin .
echo -e "${GREEN}CONTAINER archai-nexus-ink-muse-admin build successful .${NC}"
echo -e "${CYAN} start CONTAINER archai-nexus-ink-muse-admin .${NC}"
docker run -d --name archai-nexus-ink-muse-admin -p 18181:80 archai-nexus-ink-muse-admin
echo -e "${GREEN}CONTAINER archai-nexus-ink-muse-admin started ${NC}"
